using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Impact.Web.Admin
{
    /// <summary>
    /// code-behind for error page
    /// </summary>
    public partial class Error : System.Web.UI.Page
    {
        /// <summary>
        /// override of onload to perform startup functionality
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (Request.Form["ErrorMessage"] != null)
            {
                _message.Text = Request.Form["ErrorMessage"];
            }
            else
            {
                _message.Text = "An error occured but the details are unknown.";
            }

        }
    }
}
